import { createRouter, createWebHashHistory } from 'vue-router';
const router = createRouter({
    history: createWebHashHistory(), // 使用 hash 模式
    routes: [
        {
            path: '/',
            name: 'exgindex',
            component: () => import('../components/exgindex.vue')
        },
        {
            path: '/gindex',
            name: 'gindex',
            component: () => import('../components/gindex.vue')
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('../components/login.vue')
        },
        {
            path: '/Oindex',
            name: 'Oindex',
            component: () => import('../components/Oindex.vue')
        },
        {
            path: '/register',
            name: 'register',
            component: () => import('../components/register.vue')
        },
        {
            path: '/coursedetail',
            name: 'coursedetail',
            component: () => import('../components/coursedetail.vue')
        },
        {
            path: '/LearningSquare',
            name: 'LearningSquare',
            component: () => import('../components/LearningSquare.vue')
        },
        {
            path: '/Manage',
            name: 'Manage',
            component: () => import('../components/Manage.vue')
        },
        {
            path: '/VideoPlayer',
            name: 'VideoPlayer',
            component: () => import('../components/VideoPlayer.vue')
        },
                {
            path: '/Mycourse',
            name: 'Mycourse',
            component: () => import('../components/Mycourse.vue')
        },
    ]
});
export default router;